/*
 * Copyright(C) 2010 Luvina Software Company
 *
 * TestLogic.java, Oct 29, 2010 ntmhuong
 */
package net.luvina.manageuser.logic;

import java.util.List;

import net.luvina.manageuser.dto.TestDto;
import net.luvina.manageuser.hibernate.User;
import net.luvina.manageuser.hibernate.UserGrp;

/**
 * Interface logic of User
 *
 * @version 1.0
 * @author tranviethung
 *
 */
public interface TestLogic {
    /**
     * findUser
     *
     * @return List TestInfo
     */
    public List<TestDto> findUser();

    /**
     * getGroupList
     *
     * @return List UserGrp
     */
    public List<UserGrp> getGroupList();

    /**
     * getTotalRecords
     *
     * @param userGrpId
     *            userGrpId
     * @param userName
     *            userName
     * @return int TotalRecords
     */
    public int getTotalRecords(int userGrpId, String userName);

    /**
     * getListUser
     *
     * @param offset
     *            offset
     * @param limit
     *            limit
     * @param userGrpId
     *            userGrpId
     * @param userName
     *            userName
     * @return ListUser
     */
    public List<User> getListUser(int offset, int limit, int userGrpId,
            String userName);
}
